lib/pull: Don't fetch detached metadata twice for local pulls
authorColin Walters <walters@verbum.org>
Thu, 29 Jun 2017 02:23:17 +0000 (22:23 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Thu, 29 Jun 2017 15:48:59 +0000 (15:48 +0000)
commit8d586a9da0b3736c745b3441b213af20ee183109
tree42b024860c887e45dd24a514c7f2c5f62c8d5373
parent2013db0527dc2f85ab21cdc37047154a26fd161c
lib/pull: Don't fetch detached metadata twice for local pulls

Obviously very minor, but I noticed this while working on `pull --reference`. If
we have a local repo, we'll have already done a hardlink and copied the detached
metadata too, so there's no reason to request it again via the fetcher path.

Closes: #978
Approved by: jlebon
src/libostree/ostree-repo-pull.c